﻿using SpiderStudy.Utils.Currency;
using SpiderStudy.Utils.Currency.FileUtils;
using SpiderStudy.Utils.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SpiderStudy.WebSite.Bcy
{
    class BcyHelper
    {
        public string CommentFilePath = StaticValue.TempPath + "Bcy\\BcyComment.txt";
        public string UserNameFilePath = StaticValue.TempPath + "Bcy\\UserName.txt";
        
        public string CrateContent() {
            List<string> CommentList = FileHelper.ReadAllLine(CommentFilePath);
            List<string> UserList = FileHelper.ReadAllLine(UserNameFilePath);
            string Content = "";
            for (int i = 0; i < 10; i++) {

                Content = new ListHelper().Ramdom(UserList, true) + " : " + new ListHelper().Ramdom(CommentList, true);


            }
       
            return Content;
        }
    }
}
